/*
 * sys_conf.h
 *
 *  Created on: 2018年5月7日
 *      Author: 0yfj0
 */

#ifndef _SYS_CONF_H_
#define _SYS_CONF_H_
#ifdef __cplusplus
extern "C"
{
#endif  /* __cplusplus */

/*----------------------------------------------------------------------------*/
#define SYS_VAR_SIZE	( 4096 )
#define SYS_VAR_START	( 0 )
#define SYS_VAR_END		( 127 )

#define SYS_FLASH_SIZE	( 1024 )
#define SYS_FLASH_START	( 230 )
#define SYS_FLASH_END	( 239 )
#define SYS_FLASH_CONF	( 239 )

#define SYS_ENV2_SIZE	( SYS_FLASH_SIZE )
#define SYS_ENV2_AREA	( 4 )
#define SYS_ENV2_START	( 230 )
#define SYS_ENV2_END	( 238 )

#define SYS_ENV2_NO_POWERON		( 0 )
#define SYS_ENV2_POWERONA		( 0 )

#define SYS_ENV2_NO_RUNPARAS	( 1 )
#define SYS_ENV2_RP_L1RUNA		( 0 )
#define SYS_ENV2_RP_L2RUNA		( 1 )
#define SYS_ENV2_RP_L3RUNA		( 2 )
#define SYS_ENV2_RP_TOTALRUNA	( 3 )

#define SYS_ENV2_NO_L	( 2 )
#define SYS_ENV2_L1A	( 0 )
#define SYS_ENV2_L2A	( 1 )
#define SYS_ENV2_L3A	( 2 )

#define SYS_ENV2_NO_PARAMS		( 3 )
#define SYS_ENV2_PARAMS1A		( 0 )
#define SYS_ENV2_PARAMS2A		( 1 )
#define SYS_ENV2_PARAMS3A		( 2 )
#define SYS_ENV2_PARAMS4A		( 3 )

#define SYS_ENV2_NO_LAMP1CONF		( 4 )
#define SYS_ENV2_NO_LAMP2CONF		( 5 )
#define SYS_ENV2_NO_LAMP3CONF		( 6 )
#define SYS_ENV2_LAMPCONF_CTRLA		( 0 )
#define SYS_ENV2_LAMPCONF_RANGEA	( 1 )
#define SYS_ENV2_LAMPCONF_EDGEA		( 2 )

#define SYS_ENV2_NO_TIME		( 7 )
#define SYS_ENV2_TIMEA			( 0 )

#define SYS_CONF_DID_SZ		( 8 )
#define SYS_CONF_DID_OFF	( 0 )

/*----------------------------------------------------------------------------*/

#ifdef __cplusplus
}
#endif  /* __cplusplus */
#endif /* _SYS_CONF_H_ */
